package com.hao.mail;


/**
 * @author haohj
 * @date 2020-03-31 09:54
 */
public class SendMailDemo {

    public static void main(String[] args) throws Exception {
        MailUtils mailUtils = new MailUtils();
        mailUtils.setAddress("haohj94@163.com", "1195654629@qq.com", "主题");

        mailUtils.send("smtp.163.com", "haohj94@163.com", "94hhj0607", "内容");
    }
}
